home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / FromTheMag / JW FLV MEDIA PLAYER 4.2 / mediaplayer.exe / player.swf / scripts / com / jeroenwijering / events / ModelEvent.as < prev    next >
Text File  |  2008-11-04  |  831b  |  35 lines

  1. package com.jeroenwijering.events
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class ModelEvent extends Event
  6.    {
  7.       
  8.       public static var BUFFER:String = "BUFFER";
  9.       
  10.       public static var LOADED:String = "LOADED";
  11.       
  12.       public static var ERROR:String = "ERROR";
  13.       
  14.       public static var META:String = "META";
  15.       
  16.       public static var TIME:String = "TIME";
  17.       
  18.       public static var STATE:String = "STATE";
  19.        
  20.       
  21.       private var _data:Object;
  22.       
  23.       public function ModelEvent(param1:String, param2:Object = undefined, param3:Boolean = false, param4:Boolean = false)
  24.       {
  25.          super(param1,param3,param4);
  26.          _data = param2;
  27.       }
  28.       
  29.       public function get data() : Object
  30.       {
  31.          return _data;
  32.       }
  33.    }
  34. }
  35.